/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package apus.command;

import apus.exception.ErrorOutput;

/**
 * The <code>ExitCommand</code> class represents command for exit from 
 * application.
 * @author  Maxim Vasilevsky
 * @author  Roman Dyatkovsky
 * @since APUS v0.3
 * @see AbstractCommand
 */
public class ExitCommand extends AbstractCommand{

    public ExitCommand(){
        super("Exit");
    }
    
    @Override
    public void execute() {
        ErrorOutput.CloseErrorWriter();
        System.exit(0);
    }  
}